<?php namespace Zmsun\Http\Header;use Zmsun\Http\Header\Accept\FieldValuePart;class AcceptCharset extends AbstractAccept{protected$regexAddType='#^([a-zA-Z0-9+-]+|\*)$#';public function getFieldName(){return'Accept-Charset';}public function toString(){return'Accept-Charset: '.$this->getFieldValue();}public function addCharset($type,$priority=1){return$this->addType($type,$priority);}public function hasCharset($type){return$this->hasType($type);}protected function parseFieldValuePart($fieldValuePart){$internalValues=parent::parseFieldValuePart($fieldValuePart);return new FieldValuePart\CharsetFieldValuePart($internalValues);}}